package cn.sw.file.controller;

import cn.sw.common.entity.R;
import cn.sw.file.service.AttachmentService;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

@SpringBootApplication
@RestController
@RequestMapping("file")
public class FileController {
    @Resource
    private AttachmentService attachmentService;

    @PostMapping("file")
    public R<String> uploadFile(MultipartFile file) {
        return null;
    }

}
